package cmd

import (
	"github.com/spf13/cobra"
)

var singleItemCmd = &cobra.Command{
	Use:   "single_item",
	Short: "显示一个item",
	Run: func(cmd *cobra.Command, args []string) {
		defer func() {
			wf.SendFeedback()
		}()
		var query string
		if len(args) > 0 {
			query = args[0]
		}

		if query == "" {
			wf.Fatal("输入格式有误")
			return
		}

		wf.NewItem(query).Arg(query).Valid(true)
	},
}
